package org.example;

import java.util.regex.Pattern;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {

    private static final Pattern PATTERN
            = Pattern.compile("^I?([A-Z][a-z0-9]+)+(([A-Z])|(DO|DTO|VO|DAO|BO|DAOImpl|YunOS|AO|PO))?$");
    public static void main(String[] args) {

        System.out.println("test");
        String test = "AAAAAAAA";
        if (PATTERN.matcher(test).matches()) {
            System.out.println(test + " : match!");
        }
    }
}